#ifndef WATERWAVEWIDGET_H
#define WATERWAVEWIDGET_H

#include <QWidget>
#include <BHXJControls3D/bhxjglbasewidget.h>
#include<BHXJControls3D/bhxjglwaterwave.h>

class WaterWaveWidget : public BHXJGLBaseWidget
{

    Q_OBJECT
public:
    explicit WaterWaveWidget(QWidget *parent = nullptr);
    virtual ~WaterWaveWidget() override;

    bool PaintLine(){return _PaintLine;}
    void setPaintLine(bool value){_PaintLine=value;this->update();}

signals:

protected:
    bool _PaintLine=false;
    void initializeGL() override;
    void paintGL() override;
    void resizeGL( int width, int height ) override;


    BHXJGLWaterWave *wave;

    virtual void timerEvent(QTimerEvent *) override;
    float t=0;
public slots:
};
#endif // WATERWAVEWIDGET_H
